<template>
    <div class="vversion">
        <h2>Vue.version</h2>
        <div class="hr"></div>
        <el-tag
            effect="dark"
            >
            作用
        </el-tag>
        <p class="decr">获取当前使用的Vue的版本号</p>
        <div class="hr"></div>
        <el-tag
            effect="dark"
            >
            Demo
        </el-tag>
        <p class="decr">{{'当前使用的Vue的版本号是：' + version}}</p>
        <div class="hr"></div>
        <el-tag
            effect="dark"
            type="success"
            >
            <a :href="getHref" target="_blank">查看示例代码</a>
        </el-tag>
    </div>
</template>

<script>
import mixinPage from './mixin-page';
import Vue from 'vue';

export default {
    name: 'Vversion',
    mixins: [mixinPage],
    data() {
        return {
            version: Vue.version,
        }
    }
}
</script>

<style lang="less" scoped>
@import '../assets/css/mixin-frame.less';
</style>